package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicLine;
import cn.stylefeng.guns.modular.basic.model.params.BasicLineParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicLineIneResult;
import cn.stylefeng.guns.modular.basic.model.result.BasicLineResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 项目线路表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2021-07-29
 */
public interface BasicLineService extends IService<BasicLine> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2021-07-29
     */
    void add(BasicLineParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2021-07-29
     */
    void delete(BasicLineParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2021-07-29
     */
    void update(BasicLineParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2021-07-29
     */
    BasicLineResult findBySpec(BasicLineParam param,Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2021-07-29
     */
    List<BasicLineResult> findListBySpec(BasicLineParam param,Long operateId);

    List<BasicLineResult> listByOperateId(Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2021-07-29
     */
     LayuiPageInfo findPageBySpec(BasicLineParam param,String condition,Long operateId);

	List<BasicLineResult> sumfindListBySpec(BasicLineParam basicLineParam);


    BasicLineResult findByName(String name, Long operateId);

}
